package com.guigu.aoyun.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.aoyun.entity.Tickets;
import com.guigu.aoyun.entity.vo.MyTickets;
import com.guigu.aoyun.entity.vo.TicketsQuery;
import com.guigu.aoyun.mapper.TicketsMapper;
import com.guigu.aoyun.service.TicketsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TicketsServiceImpl extends ServiceImpl<TicketsMapper, Tickets> implements TicketsService {

    @Autowired(required = false)
    private TicketsMapper ticketsMapper;

    @Override
    public Page<MyTickets> page(Page<MyTickets> pageParam, TicketsQuery ticketsQuery) {
        return ticketsMapper.pageQuery(pageParam, ticketsQuery);
    }
}
